package xml;


/** 
 * Project: RovioIsWatchingYou
 * File: User.java
 *
 * Description: Objekte dieser Klasse enthalten die aus dem UserXML ausgelesenen Daten
 *
 * last change: 20.06.2012
 * @author ebaerj
 */

public class User {
	
	//Users-Klasse.
	
	private String id;
	private String name;
	private String vorname;
	private String route;
	private Boolean imHaus;
	private String lastBadged;
	private String saldo="0.0";
	
	



	public User(String id, String name, String vorname, String route, String imHaus,String lastBadged, String saldo){
		this.id=id;
		this.name=name;
		this.vorname=vorname;
		this.route=route;
		this.saldo=saldo;
		this.lastBadged=lastBadged;
		if(imHaus.equals("true")){this.imHaus=true;}else{this.imHaus=false;}
	}
	
	
	//--------------------Getters & Setters -------------------

	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRoute() {
		return route;
	}

	public void setRoute(String route) {
		this.route = route;
	}

	public Boolean getImHaus() {
		return imHaus;
	}

	public void setImHaus(Boolean imHaus) {
		this.imHaus = imHaus;
	}

	public String getVorname() {
		return vorname;
	}

	public void setVorname(String vorname) {
		this.vorname = vorname;
	}
	
	public String getLastBadged() {
		return lastBadged;
	}


	public void setLastBadged(String lastBadged) {
		this.lastBadged = lastBadged;
	}
	
	public String getSaldo() {
		return saldo;
	}


	public void setSaldo(String saldo) {
		this.saldo = saldo;
	}
}
